package com.yax.mickey.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 订单详情信息表
 * @TableName order_detail
 */
@TableName(value ="order_detail")
@Data
public class OrderDetail implements Serializable {
    /**
     * 订单详情ID，主键，自增
     */
    @TableId(type = IdType.AUTO)
    private Integer orderDetailId;

    /**
     * 订单ID
     */
    private Integer orderId;

    /**
     * 商品ID
     */
    private Integer productId;

    /**
     * 数量，不能为空
     */
    private Integer quantity;

    /**
     * 单价，不能为空
     */
    private BigDecimal unitAmount;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}